package com.mvchib.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mvchib.dao.HpBbsDAO;
import com.mvchib.model.HpBbs;
import com.mvchib.service.HpBbsService;

@Service
@Transactional
public class HpBbsServiceImpl implements HpBbsService {

    @Autowired
    private HpBbsDAO teamDAO;

    @Override
    public void addBbs(HpBbs bbs) {
        teamDAO.addBbs(bbs);
    }

    @Override
    public void updateBbs(HpBbs bbs) {
        teamDAO.updateBbs(bbs);
    }

    @Override
    public HpBbs getBbs(int bid) {
        return teamDAO.getBbs(bid);
    }

    @Override
    public void deleteBbs(int bid) {
        teamDAO.deleteBbs(bid);
    }

    @Override
    public List<HpBbs> getBbss() {
        return teamDAO.getBbss();
    }

}
